#include <stdio.h>
int main()//(int argc,char argv)
{
int n,m;
scanf("%d",&n);
    scanf("%d",&m);
    int i,b=0,a=0,k=0;//,sum=0;
    float sum=0;
    float avg;
    for(i=0;i<n;i++)
    {
        a+=2;
        sum+=a;
        k++;
        if(k==m)
        {
            avg=sum/m;
            b++;
            if(n%m!=0)
            {
                printf("%.2f ",avg);
            }else
            {
                printf("%.2f",avg);
                if(b!=(n/m))
                {
                    printf(" ");
                }else
                {
                    printf("\n");
                }
            }
            k=0;
            sum=0;
        }
    }

    //if(k=m-1&&k!=m)
    //{
     if(sum!=0)
    {
        printf("%.2f\n",(float)sum/m);
   }
    //}
    return 0;}
